
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package meeple;

/**
 *
 * @author rogier
 */
public enum Direction {
    up(0, 1), right(1, 0), down(0, -1), left(-1, 0);

    private final int x;
    private final int y;

    private Direction(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int oppositeX() {
        return -x;
    }

    public int oppositeY() {
        return -y;
    }

    /**
     * @return the x
     */
    public int getX() {
        return x;
    }

    /**
     * @return the y
     */
    public int getY() {
        return y;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
